<?php

namespace app\admin\model;

class Userrightlist extends BaseModel
{
    protected $table = 'view_userright_list';

    protected $pk = 'username';

    public function zoneList()
    {
        return $this->belongsTo("ZoneList", "zone", "zone", '', "left")->setEagerlyType(0);
    }

    public function userRightConfig()
    {
        return $this->belongsTo("UserRightConfig", "grade", "grade", '', 'left')->setEagerlyType(0);
    }
}